package it.acweb.pauseless.pauselessapp;

import android.app.Application;

public class SongManager extends Application {
	
	private Song[] _songsToDisplay;
	
	public Song[] getSelectedSongs() {
		return _songsToDisplay;
	}
	
	public void setSelectedSongs(Song[] arr) {
		_songsToDisplay = arr;
	}
	
	public void reset() {
		Song[] nuovo = new Song[0];
		_songsToDisplay = nuovo;
	}
	
	public Song[] push (Song[] addendum) {
		int aLen = _songsToDisplay.length;
 	   	int bLen = addendum.length;
 	   	Song[] C= new Song[aLen+bLen];
 	   	System.arraycopy(_songsToDisplay, 0, C, 0, aLen);
 	   	System.arraycopy(addendum, 0, C, aLen, bLen);
 	   	return C;
	}

}
